package easycloud.ecs.provider.amazon.config;

import com.amazonaws.auth.AWSCredentials;

import easycloud.ecs.common.domain.Provider;

public class AmazonS3Config implements AWSCredentials {

	private Provider config;

	public AmazonS3Config(Provider config) {
		this.config = config;
	}

	@Override
	public String getAWSAccessKeyId() {
		return config.getAccessKey();
	}

	@Override
	public String getAWSSecretKey() {
		return config.getSecretKey();
	}

	public Provider getConfig() {
		return config;
	}

}
